home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8781 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: softsite.co.at!wsog
  2. Date: 26 Feb 1996 17:27:00 +0100
  3. From: wsog@softsite.co.at (Walter Sommergruber)
  4. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
  5. Message-ID: <63aP9bS6nTB@softsite.co.at>
  6. References: <312DCB27.1A65@mtm.syr.ge.com> <31317AD4.6C9D@axonet.com.au>
  7. Subject: Re: .cc files in MS VC++
  8. X-Newsreader: XP v3.02
  9. X-Charset: ISO-8859-1
  10. Organization: Sommergruber Software & Dienstleistungen
  11. Followup-To: comp.os.ms-windows.programmer.win32
  12.  
  13. Andrew Dalgleish  (andrewd@axonet.com.au) wrote on 26.02.96
  14. about "Re: .cc files in MS VC++":
  15.  
  16. > Steve Howard wrote:
  17. > > I am trying to include some files generated by a tool into a
  18. > > Visual C++ 4.0 project. The tool generates C++ files with the
  19. > > .cc extension, which VC++ doesn't recognize as a C++ file. I
  20. > > know I could set up custom builds, but they seem to work only on
  21. > > a file by file basis.... is there any other way to make VC++
  22. > > recognize .cc as C++ files?
  23. >
  24. > I know this is an ugly hack but...
  25. > for each foo.cc, create a foo.cpp which contains
  26. > #include "foo.cc"
  27.  
  28. Oh man, that's really ugly !!!
  29. The compiler (cl) has two switches for this:
  30.     /Tcfoo.xyz     treat the file as C
  31.     /Tpfoo.cc      treat the file as C++
  32.  
  33. BTW: you included comp.lang.c++ in your cross-post - I remove this...
  34.  
  35. ---                                     Take a look at ...
  36. Walter Sommergruber                                    The Software Site
  37. email: wsog@softsite.co.at           http://www.softsite.co.at/softsite/
  38.